package com.bblei.designpatterndemo.strategypattern.duck;

import com.bblei.designpatterndemo.strategypattern.flybehavior.GoodFlyBehavior;
import com.bblei.designpatterndemo.strategypattern.quackbehavior.HaHaQuackBehavior;


public class GreenHeadDuck extends Duck {

    /**
     * 把自己特有的策略方法进行设置 组装策略
     */
	public GreenHeadDuck() {
		mFlyBehavior = new GoodFlyBehavior();
		mQuackBehavior = new HaHaQuackBehavior();
	}

    /**
     * 重写父类的特有方法
     */
	@Override
	public void display() {
		// TODO Auto-generated method stub
		System.out.println("**GreenHead**");
	}

}